@import '../../miniprogram_npm/@vant/weapp/common/index.wxss';

page {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
    'Segoe UI', Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 
    'Microsoft YaHei', sans-serif;
}

/* 外层容器 */
.aaa {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* 确保页面至少占满整个视口高度 */
  padding-bottom: 150rpx; /* 添加底部内边距，防止内容被底部按钮遮挡 */
  box-sizing: border-box; /* 确保内边距不会增加元素的总宽度 */
}

/* 卡片容器 */
.card-container {
  margin: 10px;
  padding: 5px;
  background-color: rgb(224, 221, 221);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* 用户头像 */
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 20px;
}

/* 信息行 */
.info {
  display: flex;
  align-items: center;
  padding: 15px;
}

.time {
  margin-left: auto;
  font-size: 14px;
  color: rgb(0, 0, 0);
}

/* 内容和图片区域 */
.content-and-images {
  display: flex;
  align-items: flex-start;
  gap: 10px; /* 图片和文本之间的间距 */
}

.content-text {
  flex-grow: 1;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  white-space: normal;
  word-wrap: break-word;
  margin-right: 15px;
}

.media-content {
  display: flex;
  flex-direction: column;
}

.thumbnail {
  width: 160px;
  height: 100px;
  margin-bottom: 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 底部按钮区域 */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  box-sizing: border-box;
  background-color: #fff;
  z-index: 10;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.comment-btn {
  width: 94%;
  height: 88rpx;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f5f5;
  padding: 0 3%;
  box-sizing: border-box;
  z-index: 10;
}

.comment-btn .btn {
  width: 330rpx;
  height: 84rpx;
  border-radius: 44rpx;
  border: 2px solid #F3AB00;
  display: flex;
  justify-content: center;
  align-items: center;
}

.comment-btn .reset {
  color: #F3AB00;
}

.comment-btn .submit {
  color: #fff;
  background-color: #F3AB00;
}

.comment {
  font-family: PingFang SC;
  font-weight: 500;
  font-size: 30rpx;
  color: #999999;
}

.comment .van-field__control {
  height: 300rpx;
  overflow-y: auto;
}